package zl.service.ServiceImpl;

import zl.dao.DaoImpl.UserDaoImpl;
import zl.dao.UserDao;
import zl.entity.User;
import zl.service.UserService;

public class UserServiceImpl implements UserService {
    UserDao userDao=new UserDaoImpl();
    @Override
    public User selectUserByMessage(String account, String password) {
        return userDao.selectUserByMessage(account,password);
    }

    @Override
    public void saveUser(String account, String password) {
        userDao.saveUser(account,password);
    }

    @Override
    public User selectUserByAccount(String account) {
        return userDao.selectUserByAccount(account);
    }
}
